#ifndef _XHC_UTIL_H_
#define _XHC_UTIL_H_

#include "BaseType.h"
#include "pcitypes.h"

typedef void (*PFILLUP_ROUTINE)( PUCHAR Buffer, ULONG Size );

uint32_t DpmiMapPhysMemory(uint32_t start, uint32_t length);
void DpmiUnMapPhysMemory(uint32_t mapmem);
ULONG FillPayload( PUCHAR Buffer, ULONG Size, PULONG pMagicNum );
STATUS CheckPayload( PUCHAR Buffer, ULONG Size, PULONG pMagicNum, PULONG Crc );
//PCHAR   CmdToString( HOST_REQ_TYPE Type );
PCHAR   StatusToString( STATUS Status );
#endif
